<#include "/macro/base.ftl" />

<div class="pageContent">
	<form method="post" action="${base}/sys/sysUser/update" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
		<div class="pageFormContent" layoutH="58">
			<input name="id" value="${ bean.id?c!}" type="hidden"/>
				<p>
					<label>用户名：</label>
					<input name="userName"  class="required" type="text" size="20" value="${ (bean.userName)!}" placeholder="请输入用户名"/>
				</p>
				<p>
					<label>真实姓名/昵称：</label>
					<input name="name"  class="required" type="text" size="20" value="${ (bean.name)!}" placeholder="请输入真实姓名/昵称"/>
				</p>
				<p>
					<label>密码：</label>
					<input name="password"  class="required" type="password" size="20" value="${ (bean.password)!}" placeholder="请输入密码"/>
				</p>
				<p>
					<label>用户状态：</label>
					<!-- <input name="state"  class="number" type="text"  size="20"
					 value="${ (bean.state)!}" placeholder="请输入用户状态,0:创建未认证（比如没有激活，没有输入验证码等等）--等待验证的用户 , 1:正常状态,2：用户被锁定."/> -->
					
					<input type="radio" name="state" <#if bean.status! == '0'>checked="checked"</#if> value="0"/>待验证 </input>
					<input type="radio" name="state" <#if bean.status! == '1'>checked="checked"</#if> value="1"/>启用 </input>
					<input type="radio" name="state" <#if bean.status! == '2'>checked="checked"</#if> value="2"/>禁止</input>	
				</p>
			<!--<p>
					<label>创建时间：</label>
					<input name="createDate" datefmt="yyyy-MM-dd HH:mm:ss" readonly="true" class="required date textInput readonly" type="text" size="20" value="${ (bean.createDate?string('yyyy-MM-dd HH:mm:ss'))!}" placeholder="请输入创建时间"/>
					<a class="inputDateButton" href="javascript:;">选择</a>
				</p>
				<p>
					<label>创建人：</label>
					<input name="createUser"  class="required" type="text" size="20" value="${ (bean.createUser)!}" placeholder="请输入创建人"/>
				</p>
				<p>
					<label>更新用户id：</label>
					<input name="updateUser"  class="required" type="text" size="20" value="${ (bean.updateUser)!}" placeholder="请输入更新用户id"/>
				</p>
				<p>
					<label>最后一次更新时间：</label>
					<input name="updateDate" datefmt="yyyy-MM-dd HH:mm:ss" readonly="true" class="required date textInput readonly" type="text" size="20" value="${ (bean.updateDate?string('yyyy-MM-dd HH:mm:ss'))!}" placeholder="请输入最后一次更新时间"/>
					<a class="inputDateButton" href="javascript:;">选择</a>
				</p>
				-->
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
</div>
